import request from '@/utils/request.js'

// 获取搜索建议
export const getSuggestion = keyword => {
  return request({
    url: '/v1_0/suggestion', // 接口地址
    method: 'GET',
    params: {
      q: keyword
    }
  })
}
// 获取查询结果
export const getSearch = (keyword, page) => {
  return request({
    url: '/v1_0/search', // 接口地址
    method: 'GET',
    params: {
      q: keyword,
      page
    }
  })
}
